package day3;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

//测试流的转换   字节-->字符
public class TestStreamChange {
    public static void main(String[] args) throws IOException {
        //字节流
        FileInputStream fis = new FileInputStream("d://io//testIO.txt");
        //字节转字符流
        InputStreamReader isr = new InputStreamReader(fis);
        //通过字符流封装缓冲流
        BufferedReader br = new BufferedReader(isr);
        System.out.println(br.readLine());
    }
}
